import request from './request'
// 获取列表
export const getGoods = (params)=>request.get('/goods',{params})
// 添加
export const addGoods = (params)=>request.post('/goods',params)
// 删除
export const delGoods = (id)=>request.delete(`/goods/${id}`)
// 修改
export const changeGoods = (id,params)=>request.put(`/goods/${id}`,params)